package com.miracle9.game.dao;
import com.miracle9.game.entity.CardParameter;
import org.hibernate.Query;
import org.springframework.stereotype.Repository;

@Repository
public class CardParameterServiceDao extends SqlOperating<CardParameter, Integer>
{
  public CardParameter getCardParameter()
  {
    return (CardParameter)q_CreateSqlFilter("from CardParameter", new Object[0]);
  }
  
  public Integer updateCardParameter(CardParameter cardParameter)
  {
    Query query = q_CreateSql("update CardParameter set gameDiff=:gameDiff,beilvType=:beilvType,betTime=:betTime,baodanType=:baodanType,baodanTime=:baodanTime,waterValue=:waterValue", new Object[0]);
    query.setProperties(cardParameter);
    return query.executeUpdate();
  }
}